<div id="wrap">
	<div class="shadow-inner">
		<div id="headbar">
			<div class="headbar-inner">
				<div id="lang-bar">
					<?php 	$arr_lang = array();
							$j = 1;
							foreach($lang_support as $item):
								if(strtolower($item['iso_code_2'])==strtolower($lang_current)){
									$arr_lang[0] = $item;
								}else{
									$arr_lang[$j] = $item;
									$j++;
								}
					?>
					<?php endforeach;?>
					<?php 	$j = 0;
							for(;$j<count($arr_lang);$j++){
					?>
							<a href="<?=site_url(strtolower($arr_lang[$j]['iso_code_2']))?>" class="<?= $j==0?'lang_choose':'' ?>"><?=$arr_lang[$j]['language']?></a>&nbsp;&nbsp;
					<?php 	}?>
				</div>
				<div id="tool-bar">
					<a href="<?=site_url();?>" title="<?=$this->lang->line('Home')?>"></a>
					<a href="" title=""></a>
					<a href="mailto:info@esacogroup.com.vn" title="<?=$this->lang->line('SendMail')?>"></a>
					<a href="<?=site_url(array('c'=>'home','m'=>'sitemap'));?>" title="<?=$this->lang->line('sitemap')?>"></a>
				</div>
			</div>
		</div>
		<div class="page-inner">
			<div id="header">
				<div class="logo-cont"><a href="<?=site_url();?>" class="logo" title="<?= $option['title']?>">&nbsp;</a></div>
				<div id="nav">
					<?= $this->load->view('layout/menu', array('node' => $node, 'nav' => $nav, 'external_link' => $external_link));?>
				</div>
			</div>
			<div id="main-content">
				<div class="wrap-inner">
					<div id="banner">
						<?php if(empty($node['banner'])):?>
						<?= $option['banner']?>
						<?php else:?>
						<?= $node['banner']?>
						<?php endif;?>
						<!--  SEARCH -->
						<!--  END SEARCH -->
					</div>
					<?php $class_inner = ($node['id']!=1 || $this->uri->segment(2)=='search')?'bg_inner':'' ?>

					<div class="inner-content <?=$class_inner?>" id="inner-content">
						<?= $content; ?>
						<div class="copyright"><?=$option['copyright']?></div>
					</div>
				</div>
			</div>
		</div>
		<div id="footer">
			<?= $this->load->view('layout/footer', array("footer" => $footer));?>
		</div>
	</div>
</div>

